package pkg.chemdrm;

import java.util.HashMap;

public class AIHandler {

	public HashMap<Integer, AIPlayer> mAIPlayers = new HashMap<Integer, AIPlayer>();
	
	public GameScene mGameScene;
	
	public AIHandler(GameScene pGameScene)
	{
		mGameScene = pGameScene;
		
	}
	
	public void update(float dt)
	{
		for(AIPlayer p : mAIPlayers.values())
		{
			p.update(dt);
			
		}
		
	}
	
	public void addAI(AIPlayer p)
	{
		System.err.println("AIHandler::GameScene has " + mGameScene.getChildCount() + " kids.");
		p.setId(mAIPlayers.size());
		mAIPlayers.put(mAIPlayers.size(), p);
		//mGameScene.attachChild(p);
	}
}
